//
//  StockDetailViewController.swift
//  股票框架
//
//  Created by 李小骥 on 2017/10/12.
//  Copyright © 2017年 李小骥. All rights reserved.
//

import UIKit

class StockDetailViewController1: UIViewController {

//    @IBOutlet weak var headBottomView: UIView!
//    @IBOutlet weak var headTopView: StockDetailHeadTopView!
    var xianjia = UILabel()
    var zhangdiee = UILabel()
    var zhangdiefu = UILabel()
    var jinkai = UILabel()
    var jinkaiValue = UILabel()
    var chengjiaoliang = UILabel()
    var chengjiaoliangValue = UILabel()
    var zuoshou = UILabel()
    var zuoshouValue = UILabel()
    var huanshoulv = UILabel()
    var huanshoulvValue = UILabel()
    
    var zuigao = UILabel()
    var zuigaoValue = UILabel()
    var zuidi = UILabel()
    var zuidiValue = UILabel()
    var chengbene = UILabel()
    var chengbeneValue = UILabel()
    var zhangting = UILabel()
    var zhangtingValue = UILabel()
    var dieting = UILabel()
    var dietingValue = UILabel()
    var zongguben = UILabel()
    var zonggubenValue = UILabel()
    var zhenfu = UILabel()
    var zhenfuValue = UILabel()
    var liutongzhi = UILabel()
    var liutongzhiValue = UILabel()

    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.backgroundColor = .Background
        addViews()
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    func addViews(){
//        参考
        self.xianjia = UILabel(x: 48, y: 64+16, height: 18, text: "3.76", font:18 , aliment: .center, color: .APP)
        self.view.addSubview(xianjia)
        self.zhangdiee = UILabel(x: 20, y: xianjia.y+xianjia.height+15, height: 13, text: "-0.04", font: 13, aliment: .center, color: .APP)
        self.view.addSubview(zhangdiee)
        self.zhangdiefu = UILabel(x: 20+zhangdiee.width+10, y: zhangdiee.y, height: 13, text: "-0.04%", font: 13, aliment: .center, color: .APP)
        self.view.addSubview(zhangdiefu)
        self.jinkai = UILabel(x: 48+xianjia.width+48, y: xianjia.y, height: 13, text: "今开", font: 13, aliment: .center, color: .LabelFont)
        self.view.addSubview(jinkai)
        self.jinkaiValue = UILabel(x: jinkai.x+jinkai.width+20, y: jinkai.y, height: 13, text: "3.820", font: 13, aliment: .center, color: .LabelFont)
        self.view.addSubview(jinkaiValue)
        self.chengjiaoliang = UILabel(x: zhangdiefu.x+zhangdiefu.width+20, y: zhangdiee.y, height: 13, text: "成交量", font: 13, aliment: .center, color: .LabelFont)
        self.view.addSubview(chengjiaoliang)
        self.chengjiaoliangValue = UILabel(x: chengjiaoliang.x+chengjiaoliang.width+10, y: zhangdiee.y, height: 13, text: "1250万手", font: 13, aliment: .center, color: .LabelFont)
        self.view.addSubview(chengjiaoliangValue)
        self.huanshoulv = UILabel(x: chengjiaoliangValue.x+chengjiaoliangValue.width+20, y: zhangdiee.y, height: 13, text: "换手率", font: 13, aliment: .center, color: .LabelFont)
        self.view.addSubview(huanshoulv)
        self.huanshoulvValue = UILabel(x: huanshoulv.x+huanshoulv.width+10, y: zhangdiee.y, height: 13, text: "1.250%", font: 13, aliment: .center, color: .LabelFont)
        self.view.addSubview(huanshoulvValue)
        self.zuoshou = UILabel(x: huanshoulv.x, y: xianjia.y, height: 13, text: "昨收", font: 13, aliment: .center, color: .LabelFont)
        self.view.addSubview(zuoshou)
        self.zuoshouValue = UILabel(x: huanshoulvValue.x, y: xianjia.y, height: 13, text: "3.820", font: 13, aliment: .center, color: .LabelFont)
        self.view.addSubview(zuoshouValue)
        
        self.zuigao = UILabel(x: 15, y: 64+70+16, height: 15, text: "最高", font: 15, aliment: .center, color: .LabelFont)
        self.view.addSubview(zuigao)
        self.zuigaoValue = UILabel(x: zuigao.x+zuigao.width+15, y: zuigao.y, height: 15, text: "3.850", font: 15, aliment: .center, color: .LabelFont)
        self.view.addSubview(zuigaoValue)
        self.zhangting = UILabel(x: zuigao.x, y: zuigao.y+zuigao.height+10, height: 15, text: "涨停", font: 15, aliment: .center, color: .LabelFont)
        self.view.addSubview(zhangting)
        self.zhangtingValue = UILabel(x: zhangting.x+zhangting.width+15, y: zhangting.y, height: 15, text: "3.850", font: 15, aliment: .center, color: .LabelFont)
        self.view.addSubview(zhangtingValue)
        self.zhenfu = UILabel(x: zuigao.x, y: zhangting.y+zhangting.height+10, height: 15, text: "振幅", font: 15, aliment: .center, color: .LabelFont)
        self.view.addSubview(zhenfu)
        self.zhenfuValue = UILabel(x: zhenfu.x+zhenfu.width+15, y: zhenfu.y, height: 15, text: "3.850", font: 15, aliment: .center, color: .LabelFont)
        self.view.addSubview(zhenfuValue)
        self.liutongzhi = UILabel(x: zuigao.x, y: zhangting.y+zhangting.height+10, height: 15, text: "流通值", font: 15, aliment: .center, color: .LabelFont)
        self.view.addSubview(liutongzhi)
        self.liutongzhiValue = UILabel(x: liutongzhi.x+liutongzhi.width+15, y: liutongzhi.y, height: 15, text: "3.850", font: 15, aliment: .center, color: .LabelFont)
        self.view.addSubview(liutongzhiValue)
        self.zuidi = UILabel(x: liutongzhi.x, y: zuigao.y, height: 15, text: "最低", font: 15, aliment: .center, color: .LabelFont)
        self.view.addSubview(zuidi)
        self.zuidiValue = UILabel(x: liutongzhiValue.x, y: zuigao.y, height: 15, text: "3.850", font: 15, aliment: .center, color: .LabelFont)
        self.view.addSubview(zuidiValue)
        self.dieting = UILabel(x: liutongzhi.x, y: zhangting.y, height: 15, text: "跌停", font: 15, aliment: .center, color: .LabelFont)
        self.view.addSubview(dieting)
        self.dietingValue = UILabel(x: liutongzhiValue.x, y: zhangting.y, height: 15, text: "3.850", font: 15, aliment: .center, color: .LabelFont)
        self.view.addSubview(dietingValue)
        self.chengbene = UILabel(x: zuidiValue.x+zuidiValue.width+45, y: zuigao.y, height: 15, text: "成本额", font: 15, aliment: .center, color: .LabelFont)
        self.view.addSubview(chengbene)
        self.chengbeneValue = UILabel(x: chengbene.x+chengbene.width+15, y: zuigao.y, height: 15, text: "3.850", font: 15, aliment: .center, color: .LabelFont)
        self.view.addSubview(chengbeneValue)
        self.zongguben = UILabel(x: chengbene.x, y: zhangting.y, height: 15, text: "总股本", font: 15, aliment: .center, color: .LabelFont)
        self.view.addSubview(zongguben)
        self.zonggubenValue = UILabel(x: chengbeneValue.x, y: zhangting.y, height: 15, text: "3.850", font: 15, aliment: .center, color: .LabelFont)
        self.view.addSubview(zonggubenValue)
    }

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
